#include<iostream>
#include<cmath>
using namespace std;

int main()
{
    int n;
    cin >> n;
    while (n--)
    {
        float h, w; cin >> h >> w;
        w /= 2;
        float stan = (h - 100) * 0.9 ;
        auto flag = abs(w - stan);
        if (flag < stan * 0.1) 
        {
            cout << "You are wan mei!" << endl;
        }
        else if (w > stan)
        {
            cout << "You are tai pang le!" << endl;
        }
        else 
        {
            cout << "You are tai shou le!" << endl;
        }

    }
    return 0;
}